package com.gainloop;

import android.app.ActivityGroup;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;
import com.gainloop.R;

public class ActivityAbstract extends ActivityGroup {
	Typeface fontLight, fontNormal;
	TextView headerTitle;
	

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		fontLight = Typeface.createFromAsset(getAssets(), "fonts/ERASLGHT.TTF");
		fontNormal = Typeface.createFromAsset(getAssets(), "fonts/ERASMD.TTF");
		
		requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
	}
	
	protected void initHeader()
	{
		getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.header);

		headerTitle = ((TextView) findViewById(R.id.header_title));
		headerTitle.setTypeface(fontLight);
	}
}